package com.cx.service.impl;

import com.cx.mapper.CollectMapper;
import com.cx.pojo.Collect;
import com.cx.pojo.CollectExample;
import com.cx.service.CollectService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public class CollectServiceImpl implements CollectService {

    @Autowired
    CollectMapper collectMapper;

    @Override
    public List<Collect> selectByUserId(Integer userId) {
        CollectExample collectExample = new CollectExample();
        CollectExample.Criteria criteria = collectExample.createCriteria();
        List<Collect> collectList = collectMapper.selectByExample(collectExample);
        return collectList;
    }
}
